Java.perform(function () {
    let a = Java.use("g4.a");
    a["a"].implementation = function (str, str2) {
        console.log(`a.a is called: str=${str}, str2=${str2}`);
        let result = this["a"](str, str2);
        console.log(`a.a result=${result}`);
        return result;
    };
})